package com.meilai.project.service.business.workbench;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.business.workbench.UserYearWeekTargetDTO;
import com.meilai.project.entity.business.workbench.SaleWeekTarget;
import com.meilai.project.vo.business.workbench.BaseSaleWeekTargetVO;
import com.meilai.project.vo.business.workbench.SaleYearWeekTargetVO;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 销售每周目标表 服务类
 * </p>
 *
 * @author haiYangXu
 * @since 2022-08-16
 */
public interface SaleWeekTargetService extends IService<SaleWeekTarget> {

    Boolean add(UserYearWeekTargetDTO dto);

    SaleYearWeekTargetVO queryWeekList(Integer year, Integer type);

    /**
     * 公司查询数据用户目标数据
     * @param week_ids
     * @param month_begin
     * @param month_end
     * @return
     */
    List<BaseSaleWeekTargetVO> querySaleWeekListByWeekIds(List<Long> week_ids, LocalDate month_begin, LocalDate month_end);
}
